package lee.study.String;

import java.util.Scanner;

public class TestOne1028 {
    public static String func(String string) {
        String[] tmp = string.split(" ");
        String ret = "";
        for (String s : tmp) {
            ret += s;
        }
        return ret;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {//ctrl D退出循环
            String str = scan.nextLine();
            //不能写next，因为next遇到空格就结束了
            String ret = func(str);
            System.out.println(ret);
        }
    }
}
